.sticky-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
}
.all_header {
  position: relative;
  z-index: 9;
  padding-top: 0;
}

.main-div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-div a {
  text-decoration: none;
  color: #ffffff;
}

.main-div ul {
  list-style: none;
}

.logo {
  width: 20%;
}

.central-list ul {
  display: flex;
  gap: 1.5625rem;
  align-items: center;
}
.secondary-navbar .central-list a {
  transition: 0.3s ease-in-out;
}
.secondary-navbar .central-list a:hover {
  color: #0080c0;
}
.sidebar-list li {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.central-list a:hover {
  border-bottom: 0.125rem solid black;
  padding-bottom: 0.3125rem;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  right: -18.75rem;
  top: 0;
  width: 18.75rem;
  height: 100%;
  background-color: rgb(25, 25, 25);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -0.125rem 0 0.625rem rgba(0, 0, 0, 0.3);
}

.sidebar.active {
  right: 0;
}

.sidebar-content {
  padding: 2rem;
}

.sidebar-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.sidebar-menu a {
  color: #ffffff;
}

.sidebar-menu {
  margin-top: 3.125rem;
}

.sidebar-social a {
  color: #ffffff;
}

.sidebar-menu ul {
  padding: 0;
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 1.25rem;
}

.sidebar-social li {
  list-style: none;
}

.sidebar-menu a {
  font-size: 1.25rem;
  display: block;
  padding: 0.625rem 0;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-menu a:hover {
  padding-left: 1.25rem;
  border-color: white;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Admin Dropdown Menu Styles */
.services-menue {
  position: relative;
}

.services-menue > a {
  position: relative;
  cursor: pointer;
}

.services-menue .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  display: block !important;
  flex-direction: column !important;
}

.services-menue:hover .sub-menu,
.services-menue .sub-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-menue .sub-menu li {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  list-style: none;
}

.services-menue .sub-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
  box-sizing: border-box;
}

.services-menue .sub-menu li:last-child a {
  border-bottom: none;
}

.services-menue .sub-menu li a:hover {
  background-color: #f5f5f5;
  color: #000;
}

.services-menue .sub-menu .logout-item {
  display: block;
  width: 100%;
}

.services-menue .sub-menu .logout-item a {
  color: #dc3545;
  border-top: 1px solid #e0e0e0;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  display: block;
  width: 100%;
}

.services-menue .sub-menu .logout-item a:hover {
  background-color: #f8d7da;
  color: #721c24;
}

.sidebar-social {
  margin-top: 2.5rem;
}

.sidebar-social ul {
  display: flex;
  gap: 0.9375rem;
  padding: 0;
}

.sidebar-social li {
  list-style: none;
}

.sidebar-social a {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.sidebar-social a:hover {
  background-color: white;
  color: #000;
}

.cart-counter {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #0080c0;
  color: white;
  font-size: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.wishlist-link img {
  filter: invert(1);
  width: 1.5625rem;
}

.wishlist-counter {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #0080c0;
  color: white;
  font-size: 0.75rem;
  padding: 0.0625rem 0.0625rem;
  border-radius: 50%;
  min-width: 1.125rem;
  height: 1.125rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.sidebar-list ul li a {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sidebar-list ul li a:last-child {
  margin-right: 0;
}

.cart-notification {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background-color: #000;
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 1000;
  animation:
    fadeIn 0.3s,
    fadeOut 0.3s 1.7s;
}

.cart-notification img {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) invert(1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-1.25rem);
  }
}

.all-main .cart-item-image-container img {
  filter: unset !important;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.search-icon-btn img {
  width: 1.5rem;
  height: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-width 0.4s ease,
    opacity 0.4s ease;
  border: 0.0625rem solid #ccc;
  border-radius: 1.5625rem;
  background-color: white;
}

.search-box.show {
  max-width: 18.75rem;
  opacity: 1;
}

.search-input {
  border: none;
  outline: none;
  padding: 0.45rem 0.625rem;
  width: 10rem;
  border-radius: 1.5625rem 0 0 1.5625rem;
  font-size: 0.875rem;
}

.search-submit {
  border: none;
  background-color: #0080c0;
  color: white;
  padding: 0.475rem 0.875rem;
  border-radius: 0 1.5625rem 1.5625rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
}

.cart-icon-container {
  position: relative;
  display: inline-block;
}

.cart-counter {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #0080c0;
  color: white;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.cart-preview {
  position: absolute;
  top: 94%;
  right: -7.8125rem;
  width: 550px;
  background: white;
  border: 0.0625rem solid #e0e0e0;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.9375rem;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
  border-radius: 0.3125rem;
}

.cart-icon-container:hover .cart-preview {
  display: block;
}

.cart-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9375rem;
  width: 100%;
  box-sizing: border-box;
}

.cart-item-image {
  width: 5.5rem;
  height: 6.5rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.88rem;
  justify-content: space-between;
}

.remove-btn {
  width: 2.025rem;
  height: 2.025rem;
  border-radius: 50%;
  border: 0.0625rem solid #eee;
  background-color: #fff;
  color: #999;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
}

.remove-btn:hover {
  background-color: #404040;
  color: white;
}

.cart-item-title {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  width: 6.8rem;
}
.cart-item-quantity span,
.cart-item-total-price span {
  font-weight: bold;
}
.cart-item-price-info {
  font-size: 0.925rem;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.225rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #333;
  gap: 0.2rem;
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-line {
  height: 0.0625rem;
  background: #e0e0e0;
  margin: 0.625rem 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 0.9375rem;
}

.cart-item-image-container {
  width: 5rem;
  flex: 0 0 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secondary-navbar .cart-item-image-container img {
  width: 5.375rem;
  height: 4.375rem;
  object-fit: contain;
  display: block;
}

.cart-buttons {
  display: flex;
  justify-content: space-between;
}

.cart-buttons .button {
  padding: 0.5rem 0.9375rem;
  background: #0080c0;
  color: white;
  text-decoration: none;
  text-align: center;
  flex: 1;
  margin: 0 0.3125rem;
  align-items: center;
  justify-content: center;
}

.cart-buttons .button:hover {
  background: #555;
}

.empty-cart-message {
  text-align: center;
  padding: 1.25rem 0;
  color: #666;
}

.cart-more-items {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 0.625rem;
}

.cart-preview-items {
  max-height: 23.4375rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cart-preview-items::-webkit-scrollbar {
  width: 0.375rem;
}

.cart-preview-items::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.cart-preview-items::-webkit-scrollbar-thumb {
  background: #0080c0;
  border-radius: 0.1875rem;
}

.cart-icon-container:hover .cart-preview {
  opacity: 1;
  pointer-events: auto;
}

.language-switcher img {
  width: 30px;
  height: 30px;
  filter: unset !important;
}

.language-switcher {
  position: relative;
  display: flex;
  gap: 1rem;
}

.language-switcher a {
  margin-right: 5px;
}

.logo a img {
  transform: translate(0px, 2px);
}

@media screen and (max-width: 64rem) {
  .central-list ul {
    gap: 1.45rem;
  }

  .central-list a {
    font-size: 1.1rem;
  }

  .sidebar-list li {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 900px) {
  .central-list ul {
    gap: 1rem;
  }

  .logo a {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 800px) {
  .central-list {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .sidebar-list li {
    gap: 1.75rem;
  }

  .logo a {
    font-size: 1.675rem;
  }

  .sidebar {
    width: 16rem;
    right: -16rem;
  }

  .sidebar-list img {
    height: 1.25rem;
    width: 1.125rem;
  }

  .logo {
    width: 25%;
  }
}

@media screen and (max-width: 600px) {
  .logo a {
    font-size: 1.35rem;
  }

  .sidebar-list li {
    gap: 1rem;
  }

  .sidebar {
    width: 14rem;
    right: -14rem;
  }

  .sidebar-content {
    padding: 1.5rem;
  }

  .sidebar-menu {
    margin-top: 2.5rem;
  }

  .sidebar-menu a {
    font-size: 1.125rem;
  }

  .logo {
    width: 32%;
  }
}

@media screen and (max-width: 480px) {
  .logo a {
    font-size: 1.425rem;
  }

  .sidebar-list li {
    gap: 1.15rem;
  }

  .cart-counter {
    font-size: 0.6875rem;
    width: 1.125rem;
    height: 1.125rem;
    top: -0.4375rem;
    right: -0.4375rem;
  }

  .logo {
    width: 33%;
  }
}

@media screen and (max-width: 360px) {
  .logo a {
    font-size: 1.8rem;
  }

  .sidebar-list li {
    gap: 1.05rem;
  }

  .sidebar {
    width: 12rem;
    right: -12rem;
  }

  .sidebar-content {
    padding: 1.25rem;
  }
}

@media screen and (max-width: 600px) {
  .cart-preview {
    width: min(90vw, 550px);
    right: -1rem;
  }

  .cart-preview-item {
    gap: 0.75rem;
  }

  .cart-item-image-container {
    width: 4.75rem;
    flex-basis: 4.75rem;
  }

  .cart-item-image,
  .cart-item-image-container img {
    width: 4.75rem;
    height: 5.5rem;
  }

  .cart-item-details {
    gap: 0.75rem;
  }

  .cart-item-title {
    width: auto;
    flex: 1;
    min-width: 0;
  }
}

@media screen and (max-width: 480px) {
  .cart-preview {
    right: -0.5rem;
    width: 94vw;
  }

  .cart-item-image-container {
    width: 4.25rem;
    flex-basis: 4.25rem;
  }

  .cart-item-image,
  .cart-item-image-container img {
    width: 4.25rem;
    height: 5rem;
  }

  .cart-item-details {
    gap: 0.5rem;
  }
}
